/* global App */
require(["common", "hash_routie", "coAjax", "queryString", "jQuery", "browser", "href", "eventManager", "/js/common/goodsCart.js"], function (jSouper, hash_routie, coAjax, QueryString, $, browser, href, eventManager, goodsCart) {
	hash_routie({
		html_url: "./pages/catering/pc/",
		js_url: "./js/catering/pc/",
		hash_prefix: "default/:page",
		default_hash: "main",
		teleporter: "main"
	});


	// 直接购买	
	App.set("$Event.goods_list.add_to_cart", function (e, vm) {
		var cart_item = {
			goods_id: vm.get("_id"),
			num: 1
		};
		goodsCart.add_to_cart(vm.get("_id"), 1);
	});
});